From f58df8b759c032d66bd881ebf01af69dcc3e1bb4 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Tue, 31 May 2005 13:59:49 +0000 Subject: [PATCH] bitkeeper revision 1.1612 (429c6dd5DZf10_GWDT3DTiTom7Mb1g) XendDomainInfo.py: cpu == 0 is the 1st cpu, allow pinning a domain to it. Signed-off-by: Christian Limpach --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index ac0d4b6357..8e118da4e8 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -555,7 +555,7 @@ class XendDomainInfo: if self.memory is None: raise VmError('missing memory size') cpu = sxp.child_value(config, 'cpu') - if self.recreate and self.dom and cpu is not None and cpu > 0: + if self.recreate and self.dom and cpu is not None and cpu >= 0: xc.domain_pincpu(self.dom, 0, 1<